package cn.blackbirds.marauroa.common;

import org.apache.log4j.Level;
import android.os.Environment;
import de.mindpipe.android.logging.log4j.LogConfigurator;
/**
 * Call {@link #configure()}} from your application's activity.
 */
public class ConfigureLog4J {
    public static void configure() {
        final LogConfigurator logConfigurator = new LogConfigurator();
                
        logConfigurator.setFileName(Environment.getExternalStorageDirectory() + "/basketballclient.log");
        logConfigurator.setRootLevel(Level.OFF);
        // Set log level of a specific logger
        logConfigurator.setLevel("org.apache", Level.OFF);
        logConfigurator.configure();
    }
}
